//
//  BViewController.m
//  BlockDemo2
//
//  Created by mobao on 16/4/12.
//  Copyright © 2016年 mobao. All rights reserved.
//

#import "BViewController.h"
#import "IQKeyboardManager.h"


@implementation BViewController

//-(void)viewDidAppear:(BOOL)animated{
//    [super viewDidAppear:animated];
//    [[IQKeyboardManager sharedManager]setEnable:NO];
//}
//
//-(void)viewWillDisappear:(BOOL)animated{
//    [super viewWillDisappear:animated];
//    [[IQKeyboardManager sharedManager]setEnable:YES];
//}

-(void)viewDidLoad{
    [super viewDidLoad];
    
}
- (IBAction)goBack:(id)sender {
    
    self.callBackBlock(_textField.text);
    
    [self.navigationController popViewControllerAnimated:YES];
    
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
//    [self.view endEditing:YES];//收起键盘
    
}

@end






























